
const { ccclass, property } = cc._decorator;

import TouFa from "./TouFa";
import YiFu from "./YiFu";
@ccclass
export default class StepEight extends cc.Component {
    //第八步
    //头发
    @property(TouFa)
    TouFa: TouFa = null;
    //衣服
    @property(YiFu)
    YiFu: YiFu = null;

    _point = 1;

    //更新步骤
    updatePoint(point: number) {
        this._point = point;
        this.TouFa.node.active = point == 1;
        this.YiFu.node.active = point == 2;
        switch (point) {
            case 1:
                this.TouFa.initData();
                break;
            case 2:
                this.YiFu.initData();
                break;
        }
    };


}
